package T5;

abstract class Father {
    int num;

    public Father(int num) {
        this.num = num;
    }
    public abstract void method();

}

class Niming  {

    public void show() {
        Father father=new Father(10) {
            @Override
            public void method() {
                System.out.println("num="+num);
            }
        };
        father.method();
    }
}

public class InnerClasssDemo5 {

    public static void main(String[] args) {
        Niming niming = new Niming();
        niming.show();
    }

}
